package zhonghuasuan;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
	public static void main(String args[]) {
		String str = "For my money, the important thing ";
		String regEx = "ab*";
		Matcher m = Pattern.compile(regEx).matcher(str);
		boolean result = m.find();
		System.out.println(m.group());
		System.out.println(result);
	}
}
